// 报修工单状态枚举
export enum RepairWorkOrderStatus {
  IN_PROGRESS = "IN_PROGRESS", // 进行中
  COMPLETED = "COMPLETED", // 已完成
}

export interface RepairWorkOrderType {
  id: string | null;
  content: string | null;
  deviceId: string | null;
  startTime: number | null;
  endTime?: number | null;
  maintainerCode: string | null;
  status: RepairWorkOrderStatus;
}

export interface GetRepairOrdersPageType {
  page: number;
  size: number;
  status: "";
  deviceId: string;
  maintainerCode: string;
  startTimeFrom: number | null;
  startTimeTo: number | null;
}

export interface AddOrUpdateRepairWorkOrderQueryType {
  id?: string | null;
  content: string | null;
  deviceId: string | null;
  startTime: number | null;
  maintainerCode: string | null;
  status: string | null;
}

export interface UpdateRepairOrderStatusQueryType {
  id: string | null;
  status: string | null;
  endTime: number | null;
  processingNote: string | null;
  maintainerCode: string | null;
}
